/**********************主函数***********************/
let initRun=function () {
    //左边菜单栏
    FadeModelShowToWindow.init("resize");
    //全局page和pageNum
    let url = "/share/getPublicList",
        data_send = {
            pageNum: 1,
            pageSize: 12,
            orderByField: "id",
            userId: loginUserId,
            ascend: false
        },
        method = "POST",
        nodeName1 = "right-inner",
        nodeName2 = "right-inner",
        lengthToScroll = 0;
    let shareArray = new shareArr();
    shareArray.setPlayNode([document.querySelectorAll(".cont")[0],document.querySelectorAll(".cont")[1], document.querySelectorAll(".cont")[2]]);
    MainToPage.setBase(data_send, url, method, "Json");
    MainToPage.setNodeListToShow(shareArray, screenAdopt.adoptScreen);
    MainToPage.setFirstRequest(true);
    MainToPage.setWindowResize(nodeName1);
    MainToPage.setRollWithWindow(nodeName2, nodeName1, lengthToScroll, true);
};
initRun();